package com.platform.framework.controller.trade;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.platform.framework.vo.transfer.TransportLayer;

@Controller
@RequestMapping(value = "/sys/userPage")
public class UserPageController {
	
	private static String USER_PATH = "epay/userPages";
	
	
	@RequestMapping(value = "/paymentPc", method = RequestMethod.GET)
	public String paymentPc(TransportLayer transportLayer,HttpServletRequest req) {
		HttpSession session = req.getSession();
		session.setAttribute("totalAmount", transportLayer.getTotalAmount());
		session.setAttribute("subAccountId", transportLayer.getSubAccountId());
		session.setAttribute("loginName", transportLayer.getLoginName());
		session.setAttribute("orderNo", transportLayer.getOrderNo());
		session.setAttribute("body", transportLayer.getBody());
		session.setAttribute("remark", transportLayer.getRemark());
		session.setAttribute("showURL", transportLayer.getShowURL());
		return USER_PATH + "/paymentPC";
	}


	@RequestMapping(value = "aliWapPayReturn", method = RequestMethod.GET)
	public String getAll() {
		return USER_PATH + "/alipay_return";
	}
	
}